package com.sgu6.sgu6_machine.ui.dialog.proxy;


import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.sgu6.sgu6_machine.ui.dialog.proxy.DialogInterfaceProxy;

public class ProxyDialog extends Dialog {

    public ProxyDialog(@NonNull Context context) {
        super(context);
    }

    public ProxyDialog(@NonNull Context context, int theme) {
        super(context, theme);
    }

    protected ProxyDialog(@NonNull Context context, boolean cancelable, OnCancelListener cancelListener) {
        super(context, cancelable, cancelListener);
    }

    @Override
    public void setOnCancelListener(@Nullable OnCancelListener listener) {
        super.setOnCancelListener(DialogInterfaceProxy.proxy(listener));
    }

    @Override
    public void setOnDismissListener(@Nullable OnDismissListener listener) {
        super.setOnDismissListener(DialogInterfaceProxy.proxy(listener));
    }

    @Override
    public void setOnShowListener(@Nullable OnShowListener listener) {
        super.setOnShowListener(DialogInterfaceProxy.proxy(listener));
    }
}
